//
//  MYNewsDetailsTitleBaseCell.swift
//  MuYing
//
//  Created by tbb on 2019/8/6.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit

class MYNewsDetailsTitleBaseCell: YQTableViewBaseCell {

    @objc lazy var lookCountBtn: QMUIButton = {
        let lookCountBtn = QMUIButton(type: .custom);
        lookCountBtn.setTitleColor(UIColorFromHex(rgbValue: 0xA0A0A0), for: .normal);
        lookCountBtn.titleLabel?.font = UIFont.systemFont(ofSize: 12, weight: .medium);
        lookCountBtn.titleLabel?.numberOfLines = 2;
        lookCountBtn.setTitle("---", for: .normal);
        lookCountBtn.titleLabel?.textAlignment = .center;
        return lookCountBtn;
    }()
    
    @objc lazy var collectionBtn: QMUIButton = {
        let collectionBtn = QMUIButton(type: .custom);
        collectionBtn.setTitleColor(UIColorFromHex(rgbValue: 0xA0A0A0), for: .normal);
        collectionBtn.titleLabel?.font = UIFont.systemFont(ofSize: 12, weight: .medium);
        collectionBtn.titleLabel?.numberOfLines = 2;
        collectionBtn.setTitle("---", for: .normal);
        collectionBtn.titleLabel?.textAlignment = .center;
        return collectionBtn;
    }()
    
    @objc lazy var callBtn: QMUIButton = {
        let callBtn = QMUIButton(type: .custom);
        callBtn.setTitleColor(UIColorFromHex(rgbValue: 0xA0A0A0), for: .normal);
        callBtn.titleLabel?.font = UIFont.systemFont(ofSize: 12, weight: .medium);
        callBtn.titleLabel?.numberOfLines = 2;
        callBtn.setTitle("---", for: .normal);
        callBtn.titleLabel?.textAlignment = .center;
        return callBtn;
    }()
    
    override func layoutSubviews() {
        super.layoutSubviews();
        self.contentView.addSubview(self.callBtn);
        self.callBtn.mas_makeConstraints { (make) in
            make?.right.mas_equalTo()(-12);
            make?.bottom.mas_equalTo()(-20);
            make?.height.mas_equalTo()(34);
        }
        
        self.contentView.addSubview(self.collectionBtn);
        self.collectionBtn.mas_makeConstraints { (make) in
            make?.centerY.mas_equalTo()(self.callBtn.mas_centerY)?.mas_equalTo()(0);
            make?.right.mas_equalTo()(self.callBtn.mas_left)?.mas_equalTo()(-18);
            make?.height.mas_equalTo()(34);
        }
        
        self.contentView.addSubview(self.lookCountBtn);
        self.lookCountBtn.mas_makeConstraints { (make) in
            make?.centerY.mas_equalTo()(self.callBtn.mas_centerY)?.mas_equalTo()(0);
            make?.right.mas_equalTo()(self.collectionBtn.mas_left)?.mas_equalTo()(-18);
            make?.height.mas_equalTo()(34);
        }
        
        
    }


}
